package com.pay.fegin;


import com.group.common.utils.R;
import com.pay.vo.PayAsyncVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author lins
 * @date 2021/10/19 20:01
 */
@FeignClient("activity")
public interface OrderFeignService {
    @RequestMapping("/activity/shoporder/notify")
    public String notify(@RequestBody PayAsyncVo payAsyncVo);

    /*
     * 根据订单号查找订单
     * */
    @RequestMapping("/activity/shoporder/getOrderInfoByOrderSn/{orderSn}")
    R getOrderInfoByOrderSn(@PathVariable("orderSn") String orderSn);
}
